const timeLoad = 20000 // 等待时长20秒
const tableMessageText = '暂无数据'
// '服务器繁忙，请稍候重试！'
// const chart_loading = {
//   text: '暂无数据',
//   color: '#ffffff',
//   textColor: '#8a8e91',
//   fontSize: 14,
//   x: 'center',
//   y: 'center',
//   showSpinner: false,
//   maskColor: 'rgba(255, 255, 255, 0.8)',
//   zlevel: 0
// }
export { timeLoad, tableMessageText }
// 获取当前时间
export function timestampToTime() {
  const dateList = []
  const tiemList = []
  const date = new Date() // 时间戳为10位需*1000，时间戳为13位的话不需乘1000
  const Y = date.getFullYear() + '-'
  const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
  const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
  var h = date.getHours() + ':'
  var m = date.getMinutes() + ':'
  var s = date.getSeconds()
  dateList.push([Y + M + D, 0])
  tiemList.push(Y + M + D)
  const hours_time = Y + M + D + ' ' + h + m + s
  return {
    dateList: dateList,
    tiemList: tiemList,
    year: date.getFullYear(),
    hours_time: hours_time
  }
}
